/**
 * Copyright (C) 2019-2021 杭州优诗科技有限公司
 *
 * This file is part of UnitSpirit.
 * @author wupingfu
 * @version 1.0.0
 * 
 **/
package com.unitspirit.sample.nbcb;

import java.util.Random;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author wupf
 *
 */
@Service
public class AsyncTaskService {

	public static Random random=new Random();
	
	public volatile Integer a=1;
	
	@Autowired
   private RedisTemplate redisTemplate;
	/**
	 * 
	 */
	@Async
	public void executeAsync(Integer i) {
	}

	/*
	 * public synchronized void redis(String i) { Map<String,Integer>
	 * typeMethod=redisTemplate.opsForHash().entries(i); a++; typeMethod.put(i,a);
	 * redisTemplate.opsForHash().putAll(i,typeMethod); }
	 */
}
